import request from '@/utils/request'

// 查询API信息列表
export function listInterfaceInfo(query) {
  return request({
    url: '/interfaces/interfaceInfo/list',
    method: 'get',
    params: query
  })
}

// 查询API信息详细
export function getInterfaceInfo(id) {
  return request({
    url: '/interfaces/interfaceInfo/' + id,
    method: 'get'
  })
}

// 新增API信息
export function addInterfaceInfo(data) {
  return request({
    url: '/interfaces/interfaceInfo',
    method: 'post',
    data: data
  })
}

// 修改API信息
export function updateInterfaceInfo(data) {
  return request({
    url: '/interfaces/interfaceInfo',
    method: 'put',
    data: data
  })
}

// 删除API信息
export function delInterfaceInfo(id) {
  return request({
    url: '/interfaces/interfaceInfo/' + id,
    method: 'delete'
  })
}
